From: Jonas Ã…dahl Date: Fri, 28 Jun 2024 21:01:12 +0000 (+0200) Subject: tests/fittsy: Await leisure before checking fittsiness X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~50 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=99a36210b62c4a4db9a5d71f4be030bb5fb976e3;p=gnome-shell.git tests/fittsy: Await leisure before checking fittsiness Not until we've waited for leisure can we make precise assumptions about otherwise animated actors sizes and positions, so do that before checking fittsiness. This should fix the flakyness of the fittsy test case. Part-of: --- diff --git a/tests/shell/fittsy.js b/tests/shell/fittsy.js index 53f58e0e4..09838d126 100644 --- a/tests/shell/fittsy.js +++ b/tests/shell/fittsy.js @@ -4,6 +4,7 @@ import Clutter from 'gi://Clutter'; import Shell from 'gi://Shell'; import * as Main from 'resource:///org/gnome/shell/ui/main.js'; +import * as Scripting from 'resource:///org/gnome/shell/ui/scripting.js'; import {sleep} from 'resource:///org/gnome/shell/ui/scripting.js'; const {Orientation, PickMode, TextDirection} = Clutter; @@ -45,6 +46,8 @@ export async function run() { const leftEdge = primaryMonitor.x + EPSILON; const rightEdge = primaryMonitor.x + primaryMonitor.width - EPSILON; + await Scripting.waitLeisure(); + const showApps = Main.overview.dash.showAppsButton; console.debug('Checking that dash extends to bottom screen edge'); checkFittsiness('fittsyDash',